export default {
  namespace: 'app',
  state:{
    requestState:false,
    title: ''
  },
  effects: {
    * getChange ({ payload }, {put}) {
       yield put({
         type: 'updateState',
         payload
       })
    },
    * getTitle ( { payload }, { put }) {
      yield put({
        type: 'title',
        payload
      })
    }
  },
  reducers: {
    updateState (state, { payload }) {
      return {
        ...state,
        ...payload
      }
    },
    title (state, { payload }) {
      return {
        ...state,
        ...payload
      }
    }
  }
}